WTD Token Contract

The WTD Token is the core ERC20 token of the Way To Do protocol. It is an upgradeable token built on OpenZeppelin v5.1.0 with the following capabilities:

  • Allocation-based minting — 100 billion max supply distributed across 10 categories

  • Burnable — Any holder can burn tokens to permanently reduce circulating supply

  • Pausable — Admin can pause all transfers in case of emergency

  • Permit — Gasless approvals via EIP-2612 signatures

  • Votes — On-chain voting power delegation for governance

  • Upgradeable — UUPS proxy pattern, upgrades require GOVERNANCE_ROLE

Token Info

Property
Value

Name

Way To Do

Symbol

WTD

Decimals

18

Max Supply

100,000,000,000 (100B)

Minting

Via allocation claims only

Roles

Role
Purpose

DEFAULT_ADMIN_ROLE

Claim allocations, pause/unpause, manage roles

GOVERNANCE_ROLE

Authorize contract upgrades

Key Functions

Function
Access
Description

claimAllocation(category, recipient)

Admin

Mint entire allocation category to recipient

burn(amount)

Any holder

Burn tokens from own balance

burnFrom(account, amount)

Approved spender

Burn tokens from another account (requires allowance)

pause()

Admin

Pause all token transfers

unpause()

Admin

Resume token transfers

delegate(delegatee)

Any holder

Delegate voting power

permit(owner, spender, value, deadline, v, r, s)

Anyone

Gasless approval via signature

Last updated